// Copyright 2016 The ssr Authors
package cmd

import (
	"fmt"

	"github.com/spf13/cobra"
)

const (
	VERSION = "1.0"
)

func versionCommandFunc(cmd *cobra.Command, args []string) {
	fmt.Println("version : ", VERSION)
}

func init() {
	rootCmd.AddCommand(&cobra.Command{
		Use:   "version",
		Short: "Prints the version of go_template",
		Run:   versionCommandFunc,
	})
}
